//
//  HomeHeaderView.h
//  Yimei
//
//  Created by xiaowu xiaowu on 2017/10/20.
//  Copyright © 2017年 xiaowu xiaowu. All rights reserved.
//

#import "BaseView.h"

@class AdsModel;
@interface HomeHeaderView : BaseView
@property (nonatomic,copy)void(^adBlock)(NSInteger index,AdsModel *model);
@property (nonatomic,copy)void (^cateBlock)(NSIndexPath *indexPath,id model);

-(void)reload; //刷新数据
@end

typedef enum : NSUInteger {
    AdsModelTypeProduct = 1,
    AdsModelTypeUrl,
    AdsModelContent,
} AdsModelType;

@interface AdsModel:NSObject
@property (nonatomic, assign) NSInteger add_time;
@property (nonatomic, strong) NSString * content;
@property (nonatomic, assign) NSInteger end_time;
@property (nonatomic, assign) NSInteger gc_id;
@property (nonatomic, assign) NSInteger  gid;
@property (nonatomic, assign) NSInteger idField;
@property (nonatomic, strong) NSString *img;
@property (nonatomic, assign) NSInteger start_time;
@property (nonatomic, strong) NSString *title;
@property (nonatomic, assign) AdsModelType type;
@property (nonatomic, strong) NSString *url;
@end
